package com.zhiche.lisa.bms.dao.model.statistics;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 运单统计综合表
 * </p>
 *
 * @author liangpeng
 * @since 2019-03-01
 */
@TableName("lisa_static_waybill_composite")
public class StaticWaybillComposite extends Model<StaticWaybillComposite> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 调度指令号
     */
	@TableField("shipment_code")
	private String shipmentCode;
    /**
     * 系统运单号
     */
	@TableField("sys_waybill_id")
	private String sysWaybillId;
    /**
     * 系统订单号
     */
	@TableField("sys_order_id")
	private String sysOrderId;
    /**
     * 客户运单号
     */
	@TableField("cust_waybill_id")
	private String custWaybillId;
    /**
     * 发运日期
     */
	@TableField("despatch_date")
	private Date despatchDate;
    /**
     * 运输方式
     */
	@TableField("transport_mode")
	private String transportMode;
	@TableField("lsp_id")
	private String lspId;
    /**
     * 分供方
     */
	private String lsp;
	@TableField("feelt_id")
	private String feeltId;
    /**
     * 车队
     */
	private String fleet;
    /**
     * 车牌号码
     */
	private String plate;
    /**
     * 车型
     */
	@TableField("waybill_carTypeName")
	private String waybillCarTypeName;
    /**
     * 数量
     */
	private Integer shipNum;
    /**
     * 起运地
     */
	@TableField("waybill_start_addr")
	private String waybillStartAddr;
    /**
     * 目的地
     */
	@TableField("waybill_end_addr")
	private String waybillEndAddr;
    /**
     * 目的省份
     */
	@TableField("waybill_end_province")
	private String waybillEndProvince;
    /**
     * 当前节点
     */
	@TableField("order_release_type")
	private String orderReleaseType;
    /**
     * 运单状态
     */
	@TableField("waybill_status")
	private String waybillStatus;
    /**
     * 回单状态
     */
	@TableField("pod_status")
	private String podStatus;
	/**
	 * 回款金额
	 */
	@TableField("ar_rec_money")
	private BigDecimal arRecMoney;
    /**
     * 支付单价
     */
	@TableField("waybill_price")
	private BigDecimal waybillPrice;
    /**
     * 支付公里
     */
	@TableField("waybill_miles")
	private BigDecimal waybillMiles;
    /**
     * 标准单价
     */
	@TableField("waybill_est_price")
	private BigDecimal waybillEstPrice;
    /**
     * 标准公里数
     */
	@TableField("waybill_est_miles")
	private BigDecimal waybillEstMiles;
    /**
     * 标准总价
     */
	@TableField("waybill_est_money")
	private BigDecimal waybillEstMoney;
    /**
     * 运输费
     */
	@TableField("waybill_money")
	private BigDecimal waybillMoney;
    /**
     * 运单其他费用
     */
	@TableField("waybill_other_cost")
	private BigDecimal waybillOtherCost;
    /**
     * 账单其他费用分摊金额
     */
	@TableField("pay_bill_other_cost")
	private BigDecimal payBillOtherCost;
    /**
     * 总成本
     */
	@TableField("pay_amount")
	private BigDecimal payAmount;
    /**
     * 是否暂估
     */
	@TableField("is_est")
	private String isEst;
    /**
     * 总收入
     */
	@TableField("income_amount")
	private BigDecimal incomeAmount;
    /**
     * 收入分摊比例
     */
	@TableField("income_ratio")
	private BigDecimal incomeRatio;
    /**
     * 收入分摊金额
     */
	@TableField("income_share")
	private BigDecimal incomeShare;
	/**
	 * 分摊申请开票金额
	 */
	@TableField("share_invoice_apply")
	private BigDecimal shareInvoiceApply;
	/**
	 * 分摊已开票金额
	 */
	@TableField("share_invoice_money")
	private BigDecimal shareInvoiceMoney;
    /**
     * 账单编号
     */
	@TableField("pay_bill_id")
	private String payBillId;
    /**
     * 账单状态
     */
	@TableField("pay_bill_status")
	private String payBillStatus;
    /**
     * 支付主体
     */
	@TableField("pay_name")
	private String payName;
    /**
     * 支付申请单号
     */
	@TableField("pay_invoice_code")
	private String payInvoiceCode;
    /**
     * 支付发票号
     */
	@TableField("pay_invoice_no")
	private String payInvoiceNo;
    /**
     * 支付开票日期
     */
	@TableField("pay_invoice_date")
	private String payInvoiceDate;
    /**
     * 支付日期
     */
	@TableField("pay_date")
	private String payDate;
    /**
     * 财务收票日期
     */
	@TableField("receive_invoice_date")
	private String receiveInvoiceDate;
    /**
     * 应付账单其他费用
     */
	@TableField("pay_bill_charge")
	private BigDecimal payBillCharge;
    /**
     * 实付金额
     */
	@TableField("pay_money")
	private BigDecimal payMoney;
    /**
     * 分供方扣点
     */
	private BigDecimal discount;
	/**
	 * 合同编号
	 */
	@TableField("contract_id")
	private String contractId;
    /**
     * 报价单号
     */
	@TableField("quote_code")
	private String quoteCode;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getShipmentCode() {
		return shipmentCode;
	}

	public void setShipmentCode(String shipmentCode) {
		this.shipmentCode = shipmentCode;
	}

	public String getSysWaybillId() {
		return sysWaybillId;
	}

	public void setSysWaybillId(String sysWaybillId) {
		this.sysWaybillId = sysWaybillId;
	}

	public String getSysOrderId() {
		return sysOrderId;
	}

	public void setSysOrderId(String sysOrderId) {
		this.sysOrderId = sysOrderId;
	}

	public String getCustWaybillId() {
		return custWaybillId;
	}

	public void setCustWaybillId(String custWaybillId) {
		this.custWaybillId = custWaybillId;
	}

	public Date getDespatchDate() {
		return despatchDate;
	}

	public void setDespatchDate(Date despatchDate) {
		this.despatchDate = despatchDate;
	}

	public String getTransportMode() {
		return transportMode;
	}

	public void setTransportMode(String transportMode) {
		this.transportMode = transportMode;
	}

	public String getLspId() {
		return lspId;
	}

	public void setLspId(String lspId) {
		this.lspId = lspId;
	}

	public String getLsp() {
		return lsp;
	}

	public void setLsp(String lsp) {
		this.lsp = lsp;
	}

	public String getFeeltId() {
		return feeltId;
	}

	public void setFeeltId(String feeltId) {
		this.feeltId = feeltId;
	}

	public String getFleet() {
		return fleet;
	}

	public void setFleet(String fleet) {
		this.fleet = fleet;
	}

	public String getPlate() {
		return plate;
	}

	public void setPlate(String plate) {
		this.plate = plate;
	}

	public String getWaybillCarTypeName() {
		return waybillCarTypeName;
	}

	public void setWaybillCarTypeName(String waybillCarTypeName) {
		this.waybillCarTypeName = waybillCarTypeName;
	}

	public Integer getShipNum() {
		return shipNum;
	}

	public void setShipNum(Integer shipNum) {
		this.shipNum = shipNum;
	}

	public String getWaybillStartAddr() {
		return waybillStartAddr;
	}

	public void setWaybillStartAddr(String waybillStartAddr) {
		this.waybillStartAddr = waybillStartAddr;
	}

	public String getWaybillEndAddr() {
		return waybillEndAddr;
	}

	public void setWaybillEndAddr(String waybillEndAddr) {
		this.waybillEndAddr = waybillEndAddr;
	}

	public String getWaybillEndProvince() {
		return waybillEndProvince;
	}

	public void setWaybillEndProvince(String waybillEndProvince) {
		this.waybillEndProvince = waybillEndProvince;
	}

	public String getOrderReleaseType() {
		return orderReleaseType;
	}

	public void setOrderReleaseType(String orderReleaseType) {
		this.orderReleaseType = orderReleaseType;
	}

	public String getWaybillStatus() {
		return waybillStatus;
	}

	public void setWaybillStatus(String waybillStatus) {
		this.waybillStatus = waybillStatus;
	}

	public String getPodStatus() {
		return podStatus;
	}

	public void setPodStatus(String podStatus) {
		this.podStatus = podStatus;
	}

	public BigDecimal getArRecMoney() {
		return arRecMoney;
	}

	public void setArRecMoney(BigDecimal arRecMoney) {
		this.arRecMoney = arRecMoney;
	}

	public BigDecimal getWaybillPrice() {
		return waybillPrice;
	}

	public void setWaybillPrice(BigDecimal waybillPrice) {
		this.waybillPrice = waybillPrice;
	}

	public BigDecimal getWaybillMiles() {
		return waybillMiles;
	}

	public void setWaybillMiles(BigDecimal waybillMiles) {
		this.waybillMiles = waybillMiles;
	}

	public BigDecimal getWaybillEstPrice() {
		return waybillEstPrice;
	}

	public void setWaybillEstPrice(BigDecimal waybillEstPrice) {
		this.waybillEstPrice = waybillEstPrice;
	}

	public BigDecimal getWaybillEstMiles() {
		return waybillEstMiles;
	}

	public void setWaybillEstMiles(BigDecimal waybillEstMiles) {
		this.waybillEstMiles = waybillEstMiles;
	}

	public BigDecimal getWaybillEstMoney() {
		return waybillEstMoney;
	}

	public void setWaybillEstMoney(BigDecimal waybillEstMoney) {
		this.waybillEstMoney = waybillEstMoney;
	}

	public BigDecimal getWaybillMoney() {
		return waybillMoney;
	}

	public void setWaybillMoney(BigDecimal waybillMoney) {
		this.waybillMoney = waybillMoney;
	}

	public BigDecimal getWaybillOtherCost() {
		return waybillOtherCost;
	}

	public void setWaybillOtherCost(BigDecimal waybillOtherCost) {
		this.waybillOtherCost = waybillOtherCost;
	}

	public BigDecimal getPayBillOtherCost() {
		return payBillOtherCost;
	}

	public void setPayBillOtherCost(BigDecimal payBillOtherCost) {
		this.payBillOtherCost = payBillOtherCost;
	}

	public BigDecimal getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(BigDecimal payAmount) {
		this.payAmount = payAmount;
	}

	public String getIsEst() {
		return isEst;
	}

	public void setIsEst(String isEst) {
		this.isEst = isEst;
	}

	public BigDecimal getIncomeAmount() {
		return incomeAmount;
	}

	public void setIncomeAmount(BigDecimal incomeAmount) {
		this.incomeAmount = incomeAmount;
	}

	public BigDecimal getIncomeRatio() {
		return incomeRatio;
	}

	public void setIncomeRatio(BigDecimal incomeRatio) {
		this.incomeRatio = incomeRatio;
	}

	public BigDecimal getIncomeShare() {
		return incomeShare;
	}

	public void setIncomeShare(BigDecimal incomeShare) {
		this.incomeShare = incomeShare;
	}

	public BigDecimal getShareInvoiceApply() {
		return shareInvoiceApply;
	}

	public void setShareInvoiceApply(BigDecimal shareInvoiceApply) {
		this.shareInvoiceApply = shareInvoiceApply;
	}

	public BigDecimal getShareInvoiceMoney() {
		return shareInvoiceMoney;
	}

	public void setShareInvoiceMoney(BigDecimal shareInvoiceMoney) {
		this.shareInvoiceMoney = shareInvoiceMoney;
	}

	public String getPayBillId() {
		return payBillId;
	}

	public void setPayBillId(String payBillId) {
		this.payBillId = payBillId;
	}

	public String getPayBillStatus() {
		return payBillStatus;
	}

	public void setPayBillStatus(String payBillStatus) {
		this.payBillStatus = payBillStatus;
	}

	public String getPayName() {
		return payName;
	}

	public void setPayName(String payName) {
		this.payName = payName;
	}

	public String getPayInvoiceCode() {
		return payInvoiceCode;
	}

	public void setPayInvoiceCode(String payInvoiceCode) {
		this.payInvoiceCode = payInvoiceCode;
	}

	public String getPayInvoiceNo() {
		return payInvoiceNo;
	}

	public void setPayInvoiceNo(String payInvoiceNo) {
		this.payInvoiceNo = payInvoiceNo;
	}

	public String getPayInvoiceDate() {
		return payInvoiceDate;
	}

	public void setPayInvoiceDate(String payInvoiceDate) {
		this.payInvoiceDate = payInvoiceDate;
	}

	public String getPayDate() {
		return payDate;
	}

	public void setPayDate(String payDate) {
		this.payDate = payDate;
	}

	public String getReceiveInvoiceDate() {
		return receiveInvoiceDate;
	}

	public void setReceiveInvoiceDate(String receiveInvoiceDate) {
		this.receiveInvoiceDate = receiveInvoiceDate;
	}

	public BigDecimal getPayBillCharge() {
		return payBillCharge;
	}

	public void setPayBillCharge(BigDecimal payBillCharge) {
		this.payBillCharge = payBillCharge;
	}

	public BigDecimal getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(BigDecimal payMoney) {
		this.payMoney = payMoney;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	public String getQuoteCode() {
		return quoteCode;
	}

	public void setQuoteCode(String quoteCode) {
		this.quoteCode = quoteCode;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "StaticWaybillComposite{" +
			", id=" + id +
			", shipmentCode=" + shipmentCode +
			", sysWaybillId=" + sysWaybillId +
			", sysOrderId=" + sysOrderId +
			", custWaybillId=" + custWaybillId +
			", despatchDate=" + despatchDate +
			", transportMode=" + transportMode +
			", lspId=" + lspId +
			", lsp=" + lsp +
			", feeltId=" + feeltId +
			", fleet=" + fleet +
			", plate=" + plate +
			", waybillCarTypeName=" + waybillCarTypeName +
			", shipNum=" + shipNum +
			", waybillStartAddr=" + waybillStartAddr +
			", waybillEndAddr=" + waybillEndAddr +
			", waybillEndProvince=" + waybillEndProvince +
			", waybillStatus=" + waybillStatus +
			", podStatus=" + podStatus +
			", waybillPrice=" + waybillPrice +
			", waybillMiles=" + waybillMiles +
			", waybillEstPrice=" + waybillEstPrice +
			", waybillEstMiles=" + waybillEstMiles +
			", waybillEstMoney=" + waybillEstMoney +
			", waybillMoney=" + waybillMoney +
			", waybillOtherCost=" + waybillOtherCost +
			", payBillOtherCost=" + payBillOtherCost +
			", payAmount=" + payAmount +
			", isEst=" + isEst +
			", incomeAmount=" + incomeAmount +
			", incomeRatio=" + incomeRatio +
			", incomeShare=" + incomeShare +
			", payBillId=" + payBillId +
			", payBillStatus=" + payBillStatus +
			", payName=" + payName +
			", payInvoiceCode=" + payInvoiceCode +
			", payInvoiceNo=" + payInvoiceNo +
			", payInvoiceDate=" + payInvoiceDate +
			", payDate=" + payDate +
			", receiveInvoiceDate=" + receiveInvoiceDate +
			", payBillCharge=" + payBillCharge +
			", payMoney=" + payMoney +
			", discount=" + discount +
			", contractId=" + contractId +
			", quoteCode=" + quoteCode +
			", gmtCreate=" + gmtCreate +
			", gmtModify=" + gmtModify +
			"}";
	}
}
